Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only new selectors #195

Merged
merged 10 commits into from
Sep 12, 2024
Merged

Only new selectors #195

merged 10 commits into from
Sep 12, 2024

Conversation

kaj
Copy link
Owner

@kaj kaj commented Aug 4, 2024

This is a breaking change.

The new "logical" selector types that was introduced for use in some sass selector functions is now the single implementation of css selectors, and the old css selector types are gone.

The sass selector types (that can contain string interpolations) is largely unchanged, except for the return type of the function evaluating it to css selectors.

This also fixes some special cases where the old implementation evaluated selectors incorrectly.

kaj added 7 commits August 4, 2024 23:44
* Made new-style selectors public and restrict old-style to the crate.
* Improved output-formatting of new-style selectors.
* Partially implmented filtering out placeholders from new-style selectors.
The conversion from sass selectors to css selectors (i.e. the
evaluation of string interpolations in selectors) are still done
through the old css selectors.

The selectors context in a variable scope is now new selectors.

Writing new selectors is now don to `CssBuf` (handling different
formats) rather than through the `Display` trait.

Improved new pseudo selectors and some other selector handling using a
three-state option that can be "these selectors", "match-noting", or
"match anything".
@kaj kaj force-pushed the only-new-selectors branch 5 times, most recently from 40ecb98 to f609c6e Compare August 21, 2024 10:02
* Evaluate sass selectors directly to new-style css selectors.
* Purge the old style css selectors from the code-base!
@kaj kaj force-pushed the only-new-selectors branch 3 times, most recently from ac2de23 to 643a484 Compare September 8, 2024 12:05
@kaj kaj force-pushed the only-new-selectors branch 4 times, most recently from 8ba98b7 to 13cee52 Compare September 9, 2024 21:35
@kaj kaj marked this pull request as ready for review September 9, 2024 22:22
@kaj kaj force-pushed the only-new-selectors branch 2 times, most recently from 660f764 to 9ac076a Compare September 11, 2024 16:50
Remove remains of the old selector / logical selector divide.
@kaj kaj merged commit cfc7ac8 into main Sep 12, 2024
26 checks passed
@kaj kaj deleted the only-new-selectors branch September 21, 2024 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant